{anchor:msg_retrieveattribute_0}
!! RetrieveAttribute message
!!! Constructor
!!!! new COSA.Request.RetrieveAttribute(entityLogicalName, attrLogicalName, retrieveAsIfPublished, requestId)
|| Param || Type || Description ||
| entityLogicalName | {{string}} | Entity Logical Name |
| attrLogicalName | {{string}} | Attribute LogicalName |
| retrieveAsIfPublished | {{boolean}} | Retrieve As If Published |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Properties
|| Name || Type || Description ||
| entityLogicalName | {{string}} | Entity Logical Name |
| attributeLogicalName | {{string}} | Attribute Logical Name |
| retrieveAsIfPublished | {{boolean}} | Retrieve As If Published |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Example
{code:javascript}
var retrieveAttribute_0 = new COSA.Request.RetrieveAttribute('contact', 'creditlimit', true);
//message execution
retrieveAttribute_0.execute(function ( r ) {
	//working with a response
});
//or
COSA.Request.Execute(retrieveAttribute_0, function ( r ) {
	//working with a response
});
{code:javascript}

[Back to Top|#tbl_contents_0]